home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / (A)U / (A)U1.ADF / CLI Information / AmigaTricks.TXT < prev    next >
Text File  |  1986-08-01  |  1KB  |  39 lines

  1.  
  2.    The following tricks may be of interest to CLI/AmigaDos users.
  3.  
  4. 1.  First, you can move a file to another directory without performing
  5.     a copy then delete. Use the RENAME command and specify the pathname
  6.     as part of the destination string.
  7.   
  8.     For example:
  9.  
  10.        rename lottahelp  newdir/lottahelp
  11.  
  12.     Moves the file 'lottahelp' to another directory called 'newdir'.
  13.  
  14.     You can even give the file a different name. BUT-BUT-BUT, you can
  15.     only move files from one device to another location ON THE SAME
  16.     DEVICE. You cannot move a file from RAM: to DF1:, etc.
  17.  
  18. 2.  It is possible to set the system date/time by redirecting
  19.     the stdin. But, you have to fool DATE by doing the following.
  20.  
  21.        DATE <newinfile [>nil:] ?
  22.  
  23.     The [] parameter is optional (do not included the '[' ']' 
  24.     symbols). It will redirect the output of the DATE command to 
  25.     the nil: device.
  26.  
  27.     The '?' is used to fool the date command into using 
  28.     'newinfile' as the input for DATE.
  29.  
  30. 3.  You can copy more than one file at a time to a destination
  31.     directory by specifying a wildcard of the files to move,
  32.     separated by the vertical bar character:
  33.  
  34.       copy file1|file2|file3|file4 ram:
  35.  
  36.    This makes a wildcard that only matches the filenames specified,
  37.    so the copy proceeds as normal.
  38.  
  39.